package com.example.ocean.dialogdemo;

import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;

@Route(path = "/dialog/myDialogAct")
public class MyDialogActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_dialog);


        TextView textView=findViewById(R.id.tv_show);

        if (getIntent().getExtras()!=null){
            Bundle bundle=getIntent().getExtras();
           String s= bundle.getString("text");

           if (!TextUtils.isEmpty(s)){

               textView.setText(s+"测试Arouter 传递参数");
           }




        }


    }
}
